/*
 * @Author: your name
 * @Date: 2020-05-05 14:40:18
 * @LastEditTime: 2020-05-11 13:33:12
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \glutinous_rice_takeaway\src\store\index.js
 */
// 组装模块并导出 store 的地方

import Vue from 'vue'
import Vuex from 'vuex'
import state from './state.js'
import mutations from './mutations.js'
// import * as actions from './actions.js'//写的什么玩意
import * as getters from './getters.js'
import createLogger from 'vuex/dist/logger' // Vuex 自带一个日志插件用于一般的调试

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
    state,
    mutations,
    // actions,
    // getters,
    strict: debug,
    plugins: debug ? [createLogger()] : []
})